package com.toolkit.module.category.controller;


import com.toolkit.common.CommonRespBean;
import com.toolkit.module.category.service.IApplicationCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Maoco
 * @since 2025-05-23
 */
@RestController
@RequestMapping("/applicationCategory")
public class ApplicationCategoryController {
    @Autowired
    private IApplicationCategoryService applicationCategoryService;

    /**
     * 获取权限列表
     */
    @GetMapping(value = "/getCategoryList")
    public CommonRespBean getCategoryList() {
        return CommonRespBean.success( applicationCategoryService.getCategoryList(),"获取成功");
    }
}
